package com.itelite.domain.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.itelite.domain.dto.UserVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Time;
import java.util.Date;
import java.util.List;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/6-8:37
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TrainingRecord implements Serializable {
    private Integer recordId;
    @NotNull(message = "组号不能为空")
    private Integer groupId;
    @NotBlank(message = "培训主题不为空")
    private String subject;
    @NotBlank(message = "主讲人不能为空")
    private String lecturer;
    private String teacher;
    @NotBlank(message = "培训地点不能为空")
    private String trainingLocation;
    @NotNull(message = "培训日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date trainingDate;
    @NotBlank(message = "培训对象不能为空")
    private String students;
    @NotNull(message = "时长不能为空")
    private Integer duration;
    @NotNull(message = "年级不能为空")
    private Integer grade;
    @NotBlank(message = "详情不能为空")
    private String detail;
    private Integer uploadUserId;
    private String remark;
    private String coverImage;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
}
